projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af0d876
)
entrycompletion: Realize toplevel before attempting a grab
author
Timm Bäder
<mail@baedert.org>
Fri, 19 Jan 2018 14:15:09 +0000
(15:15 +0100)
committer
Timm Bäder
<mail@baedert.org>
Fri, 19 Jan 2018 21:39:23 +0000
(22:39 +0100)
Otherwise, gtk_widget_get_window returns NULL and we can't successfully
perform a grab via the later gdk_set_grab call. This fixes the entry
completion in the file chooser not working.
gtk/gtkentrycompletion.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentrycompletion.c
b/gtk/gtkentrycompletion.c
index ae3f895b42212358600c49f61e39c3189fd0f9bf..c80f8b00616277415f6736f07c8798274dec168a 100644
(file)
--- a/
gtk/gtkentrycompletion.c
+++ b/
gtk/gtkentrycompletion.c
@@
-1592,6
+1592,7
@@
gtk_entry_completion_popup (GtkEntryCompletion *completion)
gtk_window_set_display (GTK_WINDOW (completion->priv->popup_window),
gtk_widget_get_display (completion->priv->entry));
+ gtk_widget_realize (completion->priv->popup_window);
if (completion->priv->device)
{